﻿<html><head>

<title>外来文件添加</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="../js/prototype.js" type="text/javascript"></script>
<script language="JavaScript" src="../js/listRelated.js" type="text/javascript"></script>
<script language="JavaScript" src="../js/commonFunction.js" type="text/javascript"></script>
<script language="javascript" src="../js/frame_width_change.js" type="text/javascript"></script>
<script type="text/javascript" src="../widgets/dtree/dtree.js"></script>
<script language="javascript" src="../widgets/calendar/calendar.js" type="text/javascript"></script>
<script language="javascript" src="../widgets/calendar/calendar-setup.js" type="text/javascript"></script>
<script language="javascript" src="../widgets/calendar/calendar-zh.js" type="text/javascript"></script>

<link href="../widgets/calendar/calendar-blue.css" rel="stylesheet" type="text/css">
<link rel="StyleSheet" href="../widgets/dtree/dtree.css" type="text/css" />
<link href="../css/for_firefox_css.css" rel="stylesheet" type="text/css" id="mainCSS">
<link href="../css/for_ie_css.css" rel="stylesheet" type="text/css">
<link href="../images/for_ie_css.css" rel="stylesheet" type="text/css">
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>

<!-- jQuery start-->
	<script language="javascript" src="../js/jQuery/jquery.js" type="text/javascript"></script>
	<script language="javascript" src="../js/jQuery/jquery.validate.js" type="text/javascript"></script>
	<script language="javascript" src="../js/jQuery/jquery.validation.assist.js" type="text/javascript"></script>	
	<link href="../js/jQuery/jqueryCss.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="checkForm.js"></script>
	<script type="text/javascript">
     jQuery.noConflict();
	 jQuery(document).ready(function(){
		  jQuery(".ResultCollectTable tr:odd").addClass("trodd");
		  jQuery(".ResultCollectTable tr:even").addClass("treven");
		  jQuery(".ResultCollectTable tr").hover(function(){
		     jQuery(this).addClass("trover")
		  },function(){
		   jQuery(this).removeClass("trover")
		  });
		  
	  })
	  jQuery.validator.addMethod("dateigit",jQueryDate,"请输入正确的日期格式,如19000101");
	  jQuery.validator.addMethod("dateigitthan",jQueryDateThan );
	  jQuery.validator.addMethod("twinInput",jQueryTwinInput);
	  jQuery.validator.addMethod("noZHCN",jQueryNOZHCN );
	  jQuery.validator.addMethod("zhCN",jQueryZHCN );
	 </script>
<!-- jQuery end -->

<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<script type="text/javascript">

function saveJiaoJian(){
  if(confirm("确定保存吗?")){
   
 window.close();
}

}
function submitJiaoJian(){

 if(confirm("提交后将不能再修改，确定提交吗？")){
  
  alert("提交成功!");
 window.close();
}

}
function copy(){

var currentRow=document.getElementById('add_tr');   //得到被点击的行


 var tbody=document.getElementById("table_1");   //得到table

  
 var templetRow=document.getElementById('copy_tr1'); //得到模板行
 var newRow=templetRow.cloneNode(true);	

	tbody.insertBefore(newRow,currentRow);

}
function add(){
	MM_openBrWindow('monthlyqualityForm1.html','','height=450,width=800,top=80,left=150');
}

function remove(){
    var currentRow=document.getElementById('add_tr');   //得到被点击的行
	var index=currentRow.rowIndex;
	var tbody=document.getElementById("table_1");   //得到table
	
 	var templetRow=tbody.rows[0]; 
	if(index<=2){
		alert("此行不能删除！");
		return false;
	}
	if(!confirm("你确认删除吗？")){
		return false;
	}
	tbody.deleteRow(index-1);
    

}
	</script>
</head>
<style type="text/css">
.list2tr_right{/*б2table tr?*/
margin: 3px;
padding: 3px;
text-align: right;
white-space:nowrap;
font-size: 13PX;
color: #666666;
height:20px;
border-width: 1px;
border-color:#CCCCCC;
}
.list2tr_lu{/*б2table tr?*/
margin: 3px;
padding: 3px;
text-align: center;
white-space:nowrap;
font-size: 13PX;
color: #666666;
height:20px;
border-width: 1px;
border-color:#CCCCCC;
}
.textarea1 {height: 180px;width: 80px;border: 0px solid #B5C9E4;text-align: left;text-indent: 5px;overflow:hidden;}
.textarea2 {height: 180px;width: 360px;border: 0px solid #B5C9E4;text-align: left;text-indent: 5px;overflow:hidden;}

</style>

<body class="contentbody" style="overflow: hidden;" onResize="resizeDivContent()" onLoad="resizeDivContent()">
<table id="operationBar" border="0" cellpadding="0" cellspacing="0" width="100%" height="27">
  <tbody>
    <tr> 
      <td width="15"><img src="../images/new_title_01.gif" alt="" width="15" height="27"></td>
      <td background="../images/new_title_02.gif" height="27"><span class="content_table_name1">外来文件添加</span></td>
      <td width="15"><img src="../images/new_title_03.gif" alt="" width="15" height="27"></td>
    </tr>
  </tbody>
</table>
<table id="content" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr> 
      <td width="75%"> <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tbody>
            <tr> 
              <td width="7"><img id="top_table_01" src="../images/top_table_01.gif" alt="" width="7" height="7"></td>
              <td background="../images/top_table_02.gif" width="100%"><img src="../images/top_table_02.gif" alt="" name="top_table_02" id="top_table_02" width="4" height="7"></td>
              <td width="10"><img id="top_table_03" src="../images/top_table_03.gif" alt="" width="6" height="7"></td>
            </tr>
          </tbody>
        </table>
        <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
          <tbody>
            <tr> 
              <td class="ineject_right_bg" background="../images/eject_windows_04.gif" width="7" height="95%"></td>
              <td class="search_border" valign="top" width="98%"> <div class="divContent" id="divContent" style="overflow: auto; height: 41px;"> 
                  <!-- 添加表单信息 -->
                  <table id="content" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tbody>
                      <tr> 
                        <td width="75%"> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <tbody>
                            </tbody>
                          </table>
                          <table align="left" border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                              <tr align="center" valign="top"> 
                                <td class="search_border" valign="top" width="1200"> 
                                  <div class="divContent" id="divContent" style="overflow: auto; height: 450px;"> 
                                    <!--*******************************************************************************
***********************************************************************************
	记录列表，可修改（开始）
-->
                                    <table border="0" cellpadding="0" cellspacing="0" width="15%">
                                      <tbody>
                                        <tr> 
                                          <td width="12%"><table id="__01" border="0" cellpadding="0" cellspacing="0" width="100" height="29">
                                              <tbody>
                                                <tr id="1" onClick="changeClass('1');"> 
                                                </tr>
                                              </tbody>
                                            </table></td>
                                        </tr>
                                      </tbody>
                                    </table>
                                    <table class="add1" border="0" cellpadding="0" cellspacing="0" width="97%">
                                      <tbody>
                                        <tr> 
                                          <td> <div> 
                                              <table id="bugBtn" style="display:block;" class="add_intable" border="0" cellpadding="0" cellspacing="0">
                                                <tbody>
                                                  <tr> 
                                                    <td> <div align="right"> 
                                                        <input type="button"  class="button_2_blue" name="save" id="save" value="保存">
                                                        <input type="button" class="button_2_blue" onClick="window.close();" value="关闭">
                                                      </div></td>
                                                  </tr>
                                              </table>
                                              <form id="formData" name="formData" method="post" action="" enctype="multipart/form-data">
                                                <table width="100%" border="1" cellpadding="0" cellspacing="0" class="add">
                                                  <tbody id="table_1">
                                                    <tr> 
                                                      <td colspan="10" align="center" class="addtr"> 
                                                        <div align="center"> 
                                                          <h3><strong>外来文件添加</strong></h3>
                                                        </div></td>
                                                    </tr>
                                                    <tr> 
                                                      <td colspan="2" class="addtr" align="center"> 
                                                        <div align="center"><strong>文件名称</strong>：</div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <input type="text" class="inputname" name="filename" id="filename"/> 
                                                      </td>
                                                      <td colspan="2" class="addtr" align="center"><div align="center"><strong>文件所属分类</strong>： 
                                                        </div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <select name="filetype" id="filetype" class="select2" type="text" value="">
                                                          <option value="">请选择</option>
                                                          <option value="1">集团总部</option>
                                                          <option value="2">科工局</option>
                                                          <option value="3">空军文件</option>
                                                          <option value="4">海军文件</option>
                                                          <option value="5">......</option>
                                                        </select> </td>
                                                    </tr>
                                                    <tr> 
                                                      <td colspan="2" class="addtr" align="center"> 
                                                        <div align="center"><strong>编号</strong>：</div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <input type="text" class="inputname" name="fileid" id="fileid"/> 
                                                      </td>
                                                      <td colspan="2" class="addtr" align="center"><div align="center"><strong>内容分类</strong>： 
                                                        </div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <select name="contenttype" id="contenttype" class="select2" type="text" value="">
                                                          <option value="">请选择</option>
                                                          <option value="1">体系管理</option>
                                                          <option value="2">型号管理</option>
                                                          <option value="3">具体型号</option>
                                                        </select> </td>
                                                    </tr>
                                                    <tr> 
                                                      <td colspan="2" class="addtr" align="center"> 
                                                        <div align="center"><strong>状态</strong>：</div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <input name="isvalid" id="valid" type="radio" value="1" checked>
                                                        有效&nbsp; <input name="isvalid" id="invalid" type="radio" value="2">
                                                        无效 </td>
                                                      <td colspan="2" class="addtr" align="center"> 
                                                        <div align="center"><strong>密级</strong>：</div></td>
                                                      <td colspan="3" class="addtr"> 
                                                        <select name="secretgrade" id="secretgrade" class="select2" type="text" value="">
                                                          <option value="">请选择</option>
                                                          <option value="1">一般</option>
                                                          <option value="2">秘密</option>
                                                          <option value="3">内部</option>
                                                        </select> </td>
                                                    </tr>
                                                    <tr> 
                                                      <td colspan="2" class="addtr"> 
                                                        <div align="center"><strong>发文时间</strong>：</div></td>
                                                      <td colspan="8" class="addtr"> 
                                                        <input name="publishtime" id="publishtime" class="search_input2" type="text" value=""> 
                                                        <img src="../RAMS/images/icon/tarsking.gif" alt="" width="16" height="16" border="0" class="icon_date_select" id="imgStart2" 
											title="请选择日期" onMouseOver="this.style.background='red';" onMouseOut="this.style.background=''"> 
                                                        <script type="text/javascript">
														Calendar.setup({
														inputField     :    "publishtime",    
														button         :    "imgStart2", 
														ifFormat       :    "%Y-%m-%d",     
														align          :    "Cc",  
														singleClick    :    true
													});
										   </script> </td>
                                                    </tr>
                                                    <tr> 
                                                      <td width="" align="center" class="addtd" colspan="10"><div align="center"><strong>附件添加</strong></div></td>
                                                    </tr>
                                                    <tr id="copy_tr1"> 
                                                      <td align="center"  class="addtr" colspan="2"><div align="center"><strong>附件</strong></div></td>
                                                      <td width="" align="center" class="addtd" colspan="8"> 
                                                        <input type="file" name="annex" id="annex"  maxlength="30" class="inputname" value="《关于2009年春节放假通知》" /> 
                                                      </td>
                                                    </tr>
                                                    <tr id="add_tr"> 
                                                      <td width="" align="center" class="addtd" colspan="10"><div align="center"> 
                                                          <input name="submit2" type="button" class="button_4_blue" onClick="copy();" value="增加一行">
                                                          <input name="submit" type="button" class="button_4_blue" onClick="remove();" value="删除一行">
                                                        </div></td>
                                                    </tr>
                                                  </tbody>
                                                </table>
                                              </form>
                                            </div></td>
                                        </tr>
                                      </tbody>
                                    </table>
                                  </div></td>
                              </tr>
                            </tbody>
                          </table></td>
                      </tr>
                    </tbody>
                  </table>
                </div></td>
              <td background="../images/eject_windows_06.gif" width="1%"></td>
            </tr>
            <tr> 
              <td background="../images/eject_windows_08.gif" width="7" height="5%"><img src="../images/eject_windows_07.gif" alt="" width="7" height="31"></td>
              <td class="ejectturnpage_Bg"></td>
              <td background="../images/eject_windows_08.gif"><img src="../images/eject_windows_09.gif" alt="" width="12" height="31"></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
  </tbody>
</table>
</body>
</html>